<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:body>
	<f:param value="email" />
	<f:param value="hash" />
	<!-- #{activationBean.check()} -->

	<h:panelGroup layout="block" rendered="#{activationBean.valid}">
		<p>Your account is successfully activated!</p>
		<p>
			<h:link outcome="home">Go to home page</h:link>
		</p>
	</h:panelGroup>
	<h:panelGroup layout="block" rendered="#{!activationBean.valid}">
		<p>Activation failed! Please contact an Administrator!.</p>

	</h:panelGroup>

	<f:view>
		<ui:composition template="WEB-INF/templates/template.xhtml">

			<ui:define name="content">


				<!-- Call to Action Panel -->
				<h:panelGroup layout="block" rendered="#{activationBean.valid}">
					<!-- <p>Your account is successfully activated!</p> -->
					<!-- <p> 
						<h:link outcome="home">Go to home page</h:link>
					</p> -->
				</h:panelGroup>
				<h:panelGroup layout="block" rendered="#{!activationBean.valid}">
					<p>Activation failed! Please contact an Administrator!.</p>

				</h:panelGroup>

				<div class="row">
					<div class="twelve columns">

						<div class="panel">
							<h4>Registrierung abgeschlossen!</h4>

							<div class="row">
								<div class="nine columns">
									<p>Sie können sich nun einloggen!</p>
								</div>
								<div class="three columns"></div>
							</div>
						</div>

					</div>
				</div>

			</ui:define>

			<ui:define name="footer">

			</ui:define>

		</ui:composition>
	</f:view>

</h:body>
</html>